package com.wsp.controllermanagement.pojo.vo;

import com.wsp.controllermanagement.validation.ValidationGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Package: com.wsp.controllermanagement.pojo.vo
 * Description： TODO
 *
 * @Author: 巫思平
 * Copyright: Copyright (c) 2020
 * Version: 1
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "圈子交互参数校验")
public class RecoreViewVo {

    @ApiModelProperty("用户id，在进行打卡交互过程中必带参数")
    @NotNull
    private Long userId;

    @ApiModelProperty("模块id")
    @NotNull(groups = ValidationGroup.DefaultGroup.class)
    private Long moduleId;

    @ApiModelProperty("页码")
    @NotNull(groups = ValidationGroup.UserRecordGroup.class)
    private Integer currentPage;

    @ApiModelProperty("说说内容")
    @NotBlank(groups = ValidationGroup.NewRecordGroup.class)
    private Integer recordContent;

    @ApiModelProperty("说说视频")
    @NotNull(groups = ValidationGroup.FileGroup.class)
    private MultipartFile file;

    @ApiModelProperty("说说id")
    @NotNull(groups = ValidationGroup.LikeRecordGroup.class)
    private Long recordId;
}
